package com.info.zhiduoduo.repository.entity.partner;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;
import java.util.Date;

import lombok.Data;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author bob
 * @since 2019-07-30
 */
@Data
@Accessors(chain = true)
@TableName("zdd_partner_recommend_company")
public class PartnerRecommendCompany extends Model<PartnerRecommendCompany> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 合伙人id
     */
    private Integer partnerid;
    /**
     * 推荐的企业
     */
    @TableField("recommend_company")
    private String recommendCompany;
    /**
     * 推荐的佣金比例
     */
    @TableField("recommend_brokerage_ratio")
    private Double recommendBrokerageRatio;
    /**
     * 推荐的计佣类型 1：基本服务费 2：项目服务费
     */
    @TableField("recommend_partner_type")
    private Integer recommendPartnerType;
    /**
     * 实际的推荐企业
     */
    @TableField("actual_companyid")
    private Integer actualCompanyid;
    /**
     * 实际的佣金比例
     */
    @TableField("actual_brokerage_ratio")
    private Double actualBrokerageRatio;
    /**
     * 实际选择的计佣类型1：基本服务费 2：项目服务费
     */
    @TableField("actual_partner_type")
    private Integer actualPartnerType;
    /**
     * 驳回原因
     */
    private String reason;
    /**
     * 审核状态 1：待审核（待确认）2：已审核（已确认）3：已处理（已分润）
     */
    private Integer state;
    private Date createtime;
    private Date updatetime;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
